package com.firstProject.model;

import java.sql.Date;

public class Device {

    private String id;
    private String tvalue;
    private Double latitude=112.938003+Math.random()*0.001-0.0005;
    private Double longitude=28.240463+Math.random()*0.001-0.0005;
    private String deviceName;
    private String date;

    public Device() {
    }

    public String getId() {
        return id;
    }

    public String getTvalue() {
        return tvalue;
    }

    public Double getLatitude() {
        return latitude;
    }

    public Double getLongitude() {
        return longitude;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public String getDate() {
        return date;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setTvalue(String tvalue) {
        this.tvalue = tvalue;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public void setDate(String date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "Device{" +
                "id='" + id + '\'' +
                ", tvalue='" + tvalue + '\'' +
                ", latitude=" + latitude +
                ", longitude=" + longitude +
                ", deviceName='" + deviceName + '\'' +
                ", date=" + date +
                '}';
    }
}
